package com.woniuxy.cloud.carl.carlstation.app.apiImpl;

import com.woniuxy.cloud.carl.user.client.UserQueryClient;
import com.woniuxy.cloud.carl.user.client.result.UserDetailDto;
import com.woniuxy.result.Result;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class test {
    @Resource
    private UserQueryClient userQueryClient;
//    @Autowired
//    private RocketMQTemplate rocketMQTemplate;
@Value("${name}")
    private String aa;
@GetMapping("/test")
    public void tests(){
        System.out.println(aa);

    Result<UserDetailDto> userDetail = userQueryClient.getUserDetail(1L);
    System.out.println(userDetail.toString());
}




}
